#include "main.h"
#include "global.h"

/* Prise en compte des touches frappees */
void key( unsigned char key, int x, int y )
{

	int i=-127;
	switch(key)
	{
	case 'p':/*affichage plein*/
		glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);
		glutPostRedisplay();
		break;
	case 'f':/*affichage fil de fer*/
		glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);		
		glutPostRedisplay();
		break;
	case 's':/*affichage sommets*/
		glPolygonMode(GL_FRONT_AND_BACK,GL_POINT);
		glutPostRedisplay();
		break;
	case 'q':/*quitter le programme*/
		exit(0);
	case 'a':
		printf("Ajouter un élément\n");
		dpl_trace_points();
		break;
	}

}
